package org.example.news_check.ServiceImpl;

import org.example.news_check.Mapper.LikeArticleMapper;
import org.example.news_check.Pojo.likeArticles;
import org.example.news_check.Service.LikeArticlesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LikeArticlesServiceImpl implements LikeArticlesService {
    @Autowired
    private LikeArticleMapper likeArticlesMapper;
    @Override
    public likeArticles selectMemberByMemberId(Long memberId, Long articleId) {
        return likeArticlesMapper.selectMemberByMemberId(memberId, articleId);

    }

    @Override
    public void saveLikeArticles(likeArticles likeArticles) {
        likeArticlesMapper.saveLikeArticles(likeArticles);
    }

    @Override
    public void updateLikeArticles(likeArticles likeArticles) {
        likeArticlesMapper.updateLikeArticles(likeArticles);
    }
}
